//
//  JSBaseTableHeaerFooterView.h
//  NiubilityProject
//
//  Created by Apple on 2018/3/29.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
@class JSBaseTableHeaerFooterView;

@protocol JSBaseHeaderFooterViewDelegate <NSObject>

@optional
/*!
 *  BABaseHeaderFooterView
 *
 *  @param JSBaseTableHeaerFooterView
 *  @param action                 action
 */
- (void)js_customHeaderFooterView:(JSBaseTableHeaerFooterView *)customHeaderFooterView action:(id)action;

@end

@interface JSBaseTableHeaerFooterView : UITableViewHeaderFooterView
/*!
 *  CustomHeaderFooterView's delegate.
 */
@property (nonatomic, weak)  id <JSBaseHeaderFooterViewDelegate>   delegate;

/*!
 *  CustomHeaderFooterView's data.
 */
@property (nonatomic, weak)  id                data;

/*!
 *  UITableView's section.
 */
@property (nonatomic)        NSInteger         section;

/*!
 *  TableView.
 */
@property (nonatomic, weak) UITableView       *tableView;

/*!
 *  Controller.
 */
@property (nonatomic, weak) UIViewController  *controller;

/*!
 *  Setup HeaderFooterView, override by subclass.
 */
- (void)js_setupHeaderFooterView;

/*!
 *  Build subview, override by subclass.
 */
- (void)js_buildSubview;

/*!
 *  Load content, override by subclass.
 */
- (void)js_loadContent;
@end
